package com.netsdk.lht2.push;

import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.collection.ListUtil;
import com.netsdk.demo.util.sql.Trajectory;
import com.netsdk.lht2.util.TrajectoryUtil;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.*;

// 胜辛路-陈家山路
// 先东西直行(1)，右转，左转，再南北 直行，右转，左转
public class RoadVehicleDataSxlCjsl extends AbstractRoadVehicleData{

    public RoadVehicleDataSxlCjsl(String utc) {
        super(utc);
        init();
    }
    private void init(){
        channelSet.addAll(CollectionUtil.toList("323","324","330","352"));
        // 东西直行 陈家山路-胜辛路-西侧-东HG  324 2,3  陈家山路-胜辛路-东侧-西HG	330 1,2
        List<String> straight = ListUtil.toList("324-2","324-3","330-1","330-2");
        directionMapping.put(RoadVehicleDataCblPcl.Direction.straight,straight);

        // 东西右转 陈家山路-胜辛路-西侧-东HG  324 4  陈家山路-胜辛路-东侧-西HG	330 2
        List<String> right =ListUtil.toList("324-4","330-2-");
        directionMapping.put(RoadVehicleDataCblPcl.Direction.right,right);

        // 东西左转  陈家山路-胜辛路-西侧-东HG  324 1   陈家山路-胜辛路-东侧-西HG	330 1
        List<String> left = ListUtil.toList("324-1","330-1-");
        directionMapping.put(RoadVehicleDataCblPcl.Direction.left,left);

        // 南北直行时间  胜辛路-陈家山路-北侧2-南HG	352 3,4   胜辛路-陈家山路-南侧2-北HG	323 2,3,4
        List<String> straight2 = ListUtil.toList("352-3","352-4","323-2","323-3","323-4");
        directionMapping.put(RoadVehicleDataCblPcl.Direction.straight2,straight2);

        // 南北右转   胜辛路-陈家山路-北侧2-南HG	352  1   胜辛路-陈家山路-南侧2-北HG	323  4
        List<String> right2 = ListUtil.toList("352-1","323-4-");
        directionMapping.put(RoadVehicleDataCblPcl.Direction.right2,right2);

        // 南北左转   胜辛路-陈家山路-北侧2-南HG	352  2,5   胜辛路-陈家山路-南侧2-北HG	323  1
        List<String> left2 = ListUtil.toList("352-2","352-5","323-1");
        directionMapping.put(RoadVehicleDataCblPcl.Direction.left2,left2);

    }

    @Override
    public String getName() {
        return "胜辛路";
    }
}
